 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>AccountHead View</title>

        <script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
        <style type="text/css">
            <!--
            @import url("../csss/erpstyles.css");
            body {
                background-color: #FFFFCC;
            }
            -->
        </style>
        <link href="file:///C|/Documents and Settings/Administrator/My Documents/NetBeansProjects/ERP/web/csss/erpstyles.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <table width="871" border="0" cellspacing="0" cellpadding="0" align="center">

            <tr>
                <td width="871" bgcolor="#FFFFCC">

                    <%@ page import="java.io.*"%>
                    <%@ page import="java.util.*"%>
                    <%@ page import="java.sql.*"%>
                    <%@ page import="accounttrans.*"%>
                    <%
                              String err=null;
                                   ArrayList al=(ArrayList)request.getAttribute("AL");
		   
                                 System.out.println("al at Invoice Viewlist :%" + al);
                                 if(al!=null)
                                  {
                          Iterator it=al.iterator();
                    %>

                    <% while(it.hasNext())
                                       {
                                               JvBean jb=(JvBean)it.next();
		
               String jvno					=	jb.getJv_No();
               String jvdate				=	jb.getJv_Date();
               String account				=	jb.getAccount_Head();
               String debit				=	jb.getDebit_Amount() ;
               String credit				=	jb.getCredit_Amount();
               String tamt					=	jb.getTotal_Amount();
               String narration			=	jb.getNarration();


               String[] jnv=jvdate.split("-");
               String jdate  =  jnv[2]+"-"+jnv[1]+"-"+jnv[0];
				
                    %>

                    <form  method="post" name="scheduleform" >


                        <table width="748" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr bgcolor="#FFFFCC">
                                <td height="40" colspan="5"  background="images/erpimg.jpg" class="username"  ><div align="center" class="login">Journal Voucher Details </div>		  </td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">JournalVoucherNumber </td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="acheadno" type="text" class="tabledata" value="<%=jvno%>" size="25" maxlength="20" readonly="true" /></td>
                            </tr>
                            <tr>
                                <td width="37" class="columnname">&nbsp;</td>
                                <td width="191" class="columnname">&nbsp;</td>
                                <td width="520" class="columnname">&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">JournalVoucherDate</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="acheadname" type="text" class="tabledata" id="sname" onkeypress="name_validate(this.form)" value="<%=jvdate%>" size="25" maxlength="50" readonly="true"/></td>
                            </tr>
                            <tr>
                                <td class="columnname">&nbsp;</td>
                                <td class="columnname">&nbsp;</td>
                                <td class="columnname">&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname" >&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">AccountHead</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="schedule" type="text" class="tabledata" id="schedule" onkeypress="name_validate(this.form)" value="<%=account%>" size="25" maxlength="50" readonly="true" /></td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFCC" class="columnname" >&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname" >&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">Debit</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="obalance" type="text" class="tabledata" id="obalance" value="<%=debit%>" size="25" readonly="true"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">Credit</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="desc" type="text" class="tabledata" id="desc" onkeypress="num_validate(this.form)" value="<%=credit%>" size="25" maxlength="10" readonly="true"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname"></td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">TotalAmount</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="desc2" type="text" class="tabledata" id="desc2" onkeypress="num_validate(this.form)" value="<%=tamt%>" size="25" maxlength="10" readonly="true"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname"></td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">Narration</td>
                                <td bgcolor="#7DDF90" class="columnname"><input name="desc3" type="text" class="tabledata" id="desc3" onkeypress="num_validate(this.form)" value="<%=narration%>" size="25" maxlength="10" readonly="true"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname">&nbsp;</td>
                                <td bgcolor="#FFFFCC" class="columnname"></td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="columnname"></td>
                            </tr>
                        </table>
                        <%}%>
                        <%}%>
                    </form>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p></td>
            </tr>
        </table>
    </body>
</html>
